package com.legal.service.practice.impl.view.impl;

import com.legal.domain.po.practice_view.RecordDetailsView;
import com.legal.mapper.practice.view.RecordDetailsViewMapper;
import com.legal.service.practice.impl.view.IRecordDetailsViewService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * VIEW 服务实现类
 * </p>
 *
 * @author xiaopeng
 * @since 2025-06-27
 */
@Service
public class RecordDetailsViewServiceImpl extends ServiceImpl<RecordDetailsViewMapper, RecordDetailsView> implements IRecordDetailsViewService {

    /**
     * 根据记录编号查询 刷题记录详情
     *
     * @param recordNo
     * @return
     */
    @Override
    public List<RecordDetailsView> getPracticeRecordDetailsByRecordNo(String recordNo) {

        return lambdaQuery().eq(RecordDetailsView::getRecordNo, recordNo)
                .list();
    }
}
